body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 30px;
}

.top-section-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.query-section {
    flex: 2;
    min-width: 450px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.metrics-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.metrics-container p {
    margin: 0 15px;
    font-size: 18px;
}

.query-controls {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    flex-wrap: wrap;
}

.query-section .input-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 180px;
}

.query-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.query-section input[type="date"],
.query-section input[type="text"],
.query-section select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.query-buttons {
    display: flex;
    gap: 10px;
    margin-top: 0;
}

.query-section button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.query-section button:hover {
    background-color: #0056b3;
}

.secondary-btn {
    background-color: #6c757d;
    margin-left: 10px;
}

.secondary-btn:hover {
    background-color: #5a6268;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination-controls label,
.pagination-controls select,
.pagination-controls button {
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.pagination-controls select {
    background-color: #fff;
}

.pagination-controls button {
    background-color: #007bff;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

.pagination-controls button:hover:not(:disabled) {
    background-color: #0056b3;
}

.pagination-controls button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.call-list-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.call-list-container h2 {
    margin-top: 0;
    color: #333;
}

.call-list-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.call-list-container th,
.call-list-container td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.call-list-container th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.call-list-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

.call-list-container tr:hover {
    background-color: #f1f1f1;
}

.call-list-container .status-success {
    color: green;
    font-weight: bold;
    font-size: 16px;
}

.call-list-container .status-failed {
    color: red;
    font-weight: bold;
    font-size: 16px;
}

.call-list-container .action-btn {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.call-list-container .action-btn:hover {
    background-color: #218838;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.modal-content strong {
    color: #333;
}

.modal-content .detail-section {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.modal-content .detail-section h4 {
    margin-top: 0;
    color: #007bff;
    margin-bottom: 10px;
}

.modal-content pre {
    background-color: #e9e9e9;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #333;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* New styles for charts section */
.charts-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chart-container {
    flex: 1;
    min-width: 300px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #fafafa;
}

h2 {
    text-align: center;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 20px;
} 